OUT=server client
all:$(OUT)
num1 = `awk 'END {print NR}' server.c`
num2 = `awk 'END {print NR}' server_fun.c`
num3 = `awk 'END {print NR}' server_pth_fun.c`
num4 = `awk 'END {print NR}' client.c`
num5 = `awk 'END {print NR}' client_fun.c`
num6 = `awk 'END {print NR}' client_pth_fun.c`
num7 = $(shell echo $$(($(num1)+$(num2)+$(num3))))
num8 = $(shell echo $$(($(num4)+$(num5)+$(num6))))

server:server.o server_fun.o server_pth_fun.o main.h 
	cc $^ -o $@ -l sqlite3
	@ rm -r *.o
	@ echo   统计----server:$(num7)行
	@ echo



client:client.o client_fun.o client_pth_fun.o main.h 
	cc $^ -o $@ -l sqlite3
	@ rm -r *.o
	@ echo   统计----client:$(num8)行
	@ echo
	@ ls
	
	
	
	
	





.PHONY:clean

clean:
	@ rm -r *.o $(OUT)
	@ echo $(num)
	ls
